<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改试题信息表')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-question-edit" th:object="${ksQuestion}">
            <input name="${pkColumn.javaField}" th:field="*{${pkColumn.javaField}}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">问题编号：</label>
                <div class="col-sm-8">
                    <input name="questionId" th:field="*{questionId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">所属题库编号：</label>
                <div class="col-sm-8">
                    <input name="bankId" th:field="*{bankId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">题型：</label>
                <div class="col-sm-8">
                    <input name="questions" th:field="*{questions}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">难度：</label>
                <div class="col-sm-8">
                    <input name="levelNd" th:field="*{levelNd}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">题目：</label>
                <div class="col-sm-8">
                    <input name="question" th:field="*{question}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备选答案个数：</label>
                <div class="col-sm-8">
                    <input name="optionalAnswer" th:field="*{optionalAnswer}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">选项A：</label>
                <div class="col-sm-8">
                    <input name="optionalA" th:field="*{optionalA}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">选项B：</label>
                <div class="col-sm-8">
                    <input name="optionalB" th:field="*{optionalB}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">选项C：</label>
                <div class="col-sm-8">
                    <input name="optionalC" th:field="*{optionalC}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">选项D：</label>
                <div class="col-sm-8">
                    <input name="optionalD" th:field="*{optionalD}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">选项E：</label>
                <div class="col-sm-8">
                    <input name="optionalE" th:field="*{optionalE}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">选项F：</label>
                <div class="col-sm-8">
                    <input name="optionalF" th:field="*{optionalF}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">正确答案：</label>
                <div class="col-sm-8">
                    <input name="answer" th:field="*{answer}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/question";
        $("#form-question-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-question-edit').serialize());
            }
        }
    </script>
</body>
</html>